#pragma once
#include "Wnd.h"
namespace mini
{
	namespace ui
	{
		class CEditBox : public CWnd
		{
		public:
			CEditBox();
			explicit CEditBox(const std::string text);
			virtual ~CEditBox();
			void setCursorIndex(int index);
			int  getCursorIndex();
			void inputCharacter(UINT16 nChar);
			void keyboardEvent(UINT16 nKey);
				
		private:
			void _checkCursorPlace();

		private:
			int mInsertIndex = 0;
		};
	}
}